import {ParamsType} from "@ant-design/pro-components";
import {addData, deleteById, listData, pageData, updateById} from "@/services/base-request";

export const pageCourseSubjectAPI = (params: ParamsType) => {
  return pageData("/courseSubject", params)
}

export const listCourseSubjectAPI = (params: DynamicObject) => {
  return listData("/courseSubject", params)
}

export const addCourseSubjectAPI = (data: API.ICourseSubject) => {
  return addData("/courseSubject", data)
}

export const updateCourseSubjectAPI = (data: API.ICourseSubject) => {
  return updateById("/courseSubject", data)
}

export const deleteCourseSubjectAPI = (id: string | number) => {
  return deleteById("/courseSubject", id)
}
